/**
 * 用户相关rest api
 */
 import request from '@/utils/request'

 //API常量
 const APIS = {
     V1: "/v1"
 }
 
 function queryByPaging(page, size, conditions) {
     return request({
         url: APIS.V1 + `/system/resource/list/${page}/${size}`,
         method: 'GET',
         params: conditions
     })
 }
 
 function deleteById(id) {
     return request({
         url: APIS.V1 + `/system/resource/${id}`,
         method: 'DELETE',
     })
 }
 
 function saveOrUpdate(permission) {
     return request({
         url: APIS.V1 + `/system/resource`,
         method: 'POST',
         data: permission
     })
 }
 
 export default {
    queryByPaging, deleteById, saveOrUpdate
 }